<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Liste des Sondages - <fmt:message key="appTitle" /></title>
<link rel="stylesheet" type="text/css"
	href='<c:url value="/styles/base.css" />' />
<link rel="stylesheet" type="text/css"
	href='<c:url value="/styles/charte.css" />' />
</head>
<body>

<div id="global"><jsp:include page="header.jsp" /> <jsp:include
	page="menu.jsp" />

<div id="contenu">
<div id="gp">
<c:if test="${model.size==0}">
	<h2>Vous n'avez pas de sondage</h2>
</c:if> <c:if test="${model.size>0}">
	<h2>Liste de sondages de <c:out value="${model.account.lastname}" /></h2>
	<table>
		<tr>
			<th width="30%">Titre</th>
			<th class="th2"></th>
			<th class="th2"></th>
			<th class="th2"></th>
		</tr>
		<c:forEach var="sondage" items="${model.sondages}">
			<tr>
				<td><c:out value="${sondage.title}" /></td>

				<td><c:url value="/addquestion.htm" var="questionURL">
					<c:param name="surveyFromList" value="${sondage.id}" />
				</c:url> <a href="${questionURL}"> <img
					src='<c:url value="/images/icons/edit.gif" />' /></a></td>
				<td><a href="#"> <img
					src='<c:url value="/images/icons/cross.png" />' onclick="javascript:if(confirm('Voulez vous confirmer la suppression du sondage <c:out value="${sondage.title}"/> ?')){location='listesondage.htm?surveydel=<c:out value="${sondage.id}"/>';return false;}" /></a></td>
				<td><c:url value="/reflate.htm" var="reflateURL">
					<c:param name="surveyFromList" value="${sondage.id}" />
				</c:url> <a href="${reflateURL}">Relancer les sond&eacute;s</a></td>
			</tr>
		</c:forEach>
	</table>
</c:if> <c:url value="/addsondage.htm" var="sondageURL">
</c:url>
<p><a href="${sondageURL}"><img
	src='<c:url value="/images/icons/add2.png" />' /> Ajouter un nouveau
sondage</a></p>
</div>
</div>

<jsp:include page="footer.jsp" /></div>
</body>
</html>